package com.wa.aware;

import cn.hutool.core.lang.Console;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Service;

/**
 *  bean实现BeanNameAware,获取到beanName,实际应用不知道怎么用
 */
@Service
public class BeanNameAwareTest implements BeanNameAware {


    @Override
    public void setBeanName(String s) {
        Console.log(s);
    }
}